package com.ruoyi.project.business.gpiobiz.entity;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.model.BaseEntity;

/**
 * 设备引脚业务对象 iot_control_gpio_biz
 * 
 * @author ${author}
 * @date 2024-07-25
 */
@Data
public class ControlGpioBiz extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 芯片设备id */
    @Excel(name = "芯片设备id")
    private Long chipId;

    /** 引脚序号 */
    @Excel(name = "引脚序号")
    private Integer gpio;

    /** 0: off  1: on */
    @Excel(name = "0: off  1: on")
    private Integer onOff;

    /** 引脚是否启用 0: 未启用  1: 已启用 */
    @Excel(name = "引脚是否启用 0: 未启用  1: 已启用")
    private String status;

    /** 说明当前引脚控制的设备（例如客厅主灯 */
    @Excel(name = "说明当前引脚控制的设备", readConverterExp = "说明当前引脚控制的设备（例如客厅主灯")
    private String deviceDesc;

    /** 说明当前引脚控制的继电器（例如 1 路 */
    @Excel(name = "说明当前引脚控制的继电器", readConverterExp = "说明当前引脚控制的继电器（例如 1 路")
    private String relayDesc;

    /** 是否删除 0:否 1:是 */
    @Excel(name = "是否删除 0:否 1:是")
    private Boolean deleted;

    /** 事件操作人id */
    @Excel(name = "事件操作人id")
    private Long creator;

    /** 事件更新人id */
    @Excel(name = "事件更新人id")
    private Long updater;

    /** 租户id */
    @Excel(name = "租户id")
    private Long tenantId;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("chipId", getChipId())
            .append("gpio", getGpio())
            .append("onOff", getOnOff())
            .append("status", getStatus())
            .append("deviceDesc", getDeviceDesc())
            .append("relayDesc", getRelayDesc())
            .append("deleted", getDeleted())
            .append("creator", getCreator())
            .append("updater", getUpdater())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("tenantId", getTenantId())
            .toString();
    }
}
